package response;

import java.io.IOException;

import core.Constants;
import core.GamePacket;
import core.GameUser;

public class ResponseChatPrivate extends GameResponse{
    private short status;

    public ResponseChatPrivate() {
        code = Constants.SMSG_PRIVATE_CHAT;
    }

    public void setStatus(short status) {
        this.status = status;
    }

    @Override
    public byte[] createResponse(){
    // Send a short status:
        // -1 Player does not exist
        // 0  Player not online
        // 1  Invite sent successfully

        GamePacket packet = new GamePacket(code);
        packet.addInt16(status); //Set the userName
        return packet.getBytes();
    }
}